import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);
// 登录验证
export default new Vuex.Store({
    state: {
        user: ""
    },
    mutations: {
        // 登录
        login(state, payload) {
            state.user = payload;
        },
    }
})
